<?php
// define array
$cities = array(
  "United Kingdom" => "London",
  "United States" => "Washington",
  "France" => "Paris",
  "India" => "Delhi"
);

// iterate over array
// print each value
foreach ($cities as $key => $value) {
  echo "$value is in $key \n";
}

echo "\n--------- II Way ---------\n";
foreach ($cities as $capital) {
  echo "$capital is Capital \n";
}
echo "\n-- III Way Unix Style -----\n";
foreach ($cities as $key => $value):
  echo "$value is in $key \n";
endforeach;
